# person = {(1,2):"黄安",(2,3):"林慧"}
# print(person)

# print(person[(1,2)])
# print(person[(2,3)])
# print(person.get((1,89)))

# #添加
# person[(4,6)] = "张三"
# print(person)
# #删除
# #person.del((1,2))
# del person[(1,2)]
# print(person)

#遍历
# for au in person:
#     print(au,end=(" "))
# print("\n")
# for keys in person.keys():
#     print(au,end=(" "))
# print("\n")
# for keys in person.values():
#     print(keys,end=(" "))
# print("\n")
# for au in person.items():
#     print(au,end=(" "))


important = {"我自己":"黄安" , "好人":"林慧" , "陌生人" : "张三"}
print(important)
important["测试添加"] = "我市新增的元素!!!"
print(important)
del important["我自己"]
print(important)

print("好人" in important)

for key in important.keys():
    print(key,end=(" "))
print("\n")
for key in important.values():
    print(key,end=(" "))
print("\n")
for key in important.items():
    print(key,end=(" "))
print("\n")











